// 获取验证码
import request from "./request";

export function getCodeImg(username) {
  return request({
    url: '/captchaImage?username='+username,
    headers: {
      isToken: false
    },
    method: 'get',
    timeout: 20000
  })
}

//滑动或者点选验证
export function reqCheck(data) {
  return  request({
    url: '/check',
    method: 'post',
    data
  })
}
